Masterarbeit v0.6.2

Docs

Endpoint: /request/<id>

Returns the html code of a downloaded website. Needs to be uploaded already (see upload/file or upload/url).

Request

URL

Method: GET /api/request/<id>

Request Parameters

  • id: ID of the website (required)

Request Body

no request body

Response

Response Elements

  • id: ID of requested website
  • url: URL of the website, can be null
  • fileName: file name of the website, can be null
  • html: raw html code of the website
  • createdAt: timestamp of the upload

Examples

Request

GET /api/request/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Content-type: application/json

Response

{
  "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "url": "null",
  "fileName": "file.html",
  "html":"<!doctype html>...</html>",
  "createdAt": "2000-01-01T12:00:00.000Z"
}